import request from '@/request/request'

export const reportApi = {
  // 产品库存报表
  getProductStock: () => request({ url: '/analysis/report/product-stock', method: 'get' }),
  
  // 账户统计报表
  getAccount: () => request({ url: '/analysis/report/account', method: 'get' }),
  
  // 零售统计报表
  getRetail: () => request({ url: '/analysis/report/retail', method: 'get' }),
  getRetailStat: () => request({ url: '/analysis/report/retail', method: 'get' }),
  
  // 采购统计报表
  getPurchase: () => request({ url: '/analysis/report/purchase', method: 'get' }),
  getPurchaseStat: () => request({ url: '/analysis/report/purchase', method: 'get' }),
  
  // 销售统计报表
  getSale: () => request({ url: '/analysis/report/sale', method: 'get' }),
  getSalesStat: () => request({ url: '/analysis/report/sale', method: 'get' }),
  
  // 进销存统计报表
  getInventoryFlow: () => request({ url: '/analysis/report/inventory-flow', method: 'get' }),
  
  // 库存预警报表
  getStockWarning: () => request({ url: '/analysis/report/stock-warning', method: 'get' }),
  
  // 销售利润报表
  getSalesProfit: () => request({ url: '/analysis/report/sales-profit', method: 'get' }),
  
  // 销售排行报表
  getSalesRank: () => request({ url: '/analysis/report/sales-rank', method: 'get' }),
  
  // 销售比例报表
  getSalesRatio: () => request({ url: '/analysis/report/sales-ratio', method: 'get' }),
  
  // 负库存报表
  getNegativeStock: () => request({ url: '/analysis/report/negative-stock', method: 'get' }),
  
  // 多属性库存报表
  getMultiAttrStock: () => request({ url: '/analysis/report/multi-attr-stock', method: 'get' }),
  
  // 绩效统计报表
  getPerformance: () => request({ url: '/analysis/report/performance', method: 'get' })
}


